#!/bin/bash
cat init.sql
echo
read -r -p "Are you sure? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
    mysql -h localhost -uroot -p < init.sql
else
    echo 'exit.'
fi

